import { createRouter, createWebHistory } from 'vue-router'
import TodoList from '../components/TodoList.vue' 
import About from '../components/about.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('../components/Home.vue')
  },
  {
    path: '/todolist',
    name: 'TodoList',
    component: TodoList
  },
  {
    path: '/about',
    name: 'About',
    component: () => import('../components/about.vue') 
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router